package com.ruoyi.wmsorder.quartz.config;

import org.quartz.Job;
import org.quartz.JobDetail;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.stereotype.Component;

@Component
public class SerialNumberJob implements Job {

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {

        JobDetail jobDetail = context.getJobDetail();
        SerialNumber.purchaseSerial=1000;
        System.out.println("本次执行时间："+ context.getFireTime());
        System.out.println("下次次执行时间："+ context.getNextFireTime());
    }
}
